package com.sky.mapper;

import com.github.pagehelper.Page;
import com.sky.dto.SetmealPageQueryDTO;
import com.sky.entity.DishFlavor;
import com.sky.entity.Setmeal;
import com.sky.vo.SetmealVO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface SetmealMapper {


    Page<SetmealVO> pageList(SetmealPageQueryDTO setmealPageQueryDTO);

    void add(Setmeal setmeal);

    void SetmealUpDate(Setmeal setmeal);

    SetmealVO byid(Long id);

    void deleteByid(Integer[] ids);

    List<Setmeal> byCategoryID(Long categoryId);
@Select("select count(*) from sky_take_out.setmeal where status=#{status}")
    Integer countByMap(Map map);
}
